#ifndef DIALOG_H
#define DIALOG_H

#include <QtGui/QDialog>
#include <QPushButton>
#include <QString>
#include <QComboBox>

#include "graphwidget.h"

class Dialog : public QDialog
{
    Q_OBJECT

public:
    Dialog(QWidget *parent = 0);
    ~Dialog();

private:
    void loadFile(QString fname);
    void resetPosition();
    void logEvent(QString str);
    void parseData(char *data, int len);

private slots:
    void openButtonClicked();

private:
    double *data;
    int dataLen;

    QPushButton *resetButton;
    QPushButton *zoomInButton;
    QPushButton *zoomOutButton;
    QPushButton *leftButton;
    QPushButton *rightButton;

    QPushButton *openButton;

    QComboBox *journal;

    GraphWidget *graphic;
};

#endif // DIALOG_H
